package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 司机扩展信息表
 * </p>
 *
 * @author Dell
 * @since 2021-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "DriverExtraInformation对象", description = "司机扩展信息表")
public class DriverExtraInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "司机id")
    private Long driverId;

    @ApiModelProperty(value = "身份证号")
    private String identityNumber;

    @ApiModelProperty(value = "驾驶证号码")
    private String driverLicenceNumber;

    @ApiModelProperty(value = "行驶证号码")
    private String vehicleLicenceNumber;

    @ApiModelProperty(value = "从业资格证")
    private String qualificationCertificateNumber;

    @ApiModelProperty(value = "道路交通号")
    private String roadTransportNumber;

    @ApiModelProperty(value = "车辆发动机号")
    private String engineNumber;

    @ApiModelProperty(value = "服务卡号")
    private String serviceNumber;

    @ApiModelProperty(value = "行驶证强制报废期(时间戳)")
    private Integer vehicleLicenceExpiringTimestamp;

    @ApiModelProperty(value = "从业资格证有效期(时间戳)")
    private Integer qualificationCertificateExpiringTimestamp;

    @ApiModelProperty(value = "正常(0: 行驶证, 1:从业资格证)")
    private Integer normalState;

    @ApiModelProperty(value = "待更新(0: 行驶证, 1:从业资格证)")
    private Integer updateState;

    @ApiModelProperty(value = "过期(0: 行驶证, 1:从业资格证)")
    private Integer overdueState;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


    private String deviceAutoInfo;


}
